import request from '@/utils/request'

// 查询设备类别列表
export function listLb(query) {
  return request({
    url: '/device/lb/list',
    method: 'get',
    params: query
  })
}

// 查询设备类别详细
export function getLb(id) {
  return request({
    url: '/device/lb/' + id,
    method: 'get'
  })
}

// 新增设备类别
export function addLb(data) {
  return request({
    url: '/device/lb',
    method: 'post',
    data: data
  })
}

// 修改设备类别
export function updateLb(data) {
  return request({
    url: '/device/lb',
    method: 'put',
    data: data
  })
}

// 删除设备类别
export function delLb(id) {
  return request({
    url: '/device/lb/' + id,
    method: 'delete'
  })
}
